#include "qmachineinfodialog.h"
#include "ui_qmachineinfodialog.h"

#include "../libs/machine/qmachine.h"
#include "../libs/core/qsoftcore.h"

QMachineInfoDialog::QMachineInfoDialog(QWidget *parent) :
    QBaseDialog(parent),
    ui(new Ui::QMachineInfoDialog)
{
    ui->setupUi(this);

    QMachine *machine=QSoftCore::get_core()->get_machine();
    if(machine!=NULL)
    {
        ui->label_2->setText(machine->type());
        ui->label_4->setText(machine->version());
    }
}

QMachineInfoDialog::~QMachineInfoDialog()
{
    delete ui;
}
